//
//  MYShopDetailsGoodsTitleCell.swift
//  MuYing
//
//  Created by tbb on 2019/7/29.
//  Copyright © 2019 TBB. All rights reserved.
//Sales

import UIKit

class MYShopDetailsGoodsTitleCell: YQTableViewBaseCell {
    @objc var infoModel = YQPSkuInfoModel()
    @objc @IBOutlet weak var priceLb: UILabel!
    @objc @IBOutlet weak var titleLb: UILabel!
    @objc @IBOutlet weak var postageLb: UILabel!
    @objc @IBOutlet weak var salesLb: UILabel!
    @objc @IBOutlet weak var placeLb: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    @objc func setModel(_ model:YQPSkuInfoModel)
    {
//        var freStr = ""
//
//        let freight:Double = (model.freight as NSString).doubleValue
//        if freight <= 0 {
//            freStr = "(免邮)"
//        } else {
//            freStr = model.freight
//        }
//        self.postageLb.text = kYQLSSwift("邮费:" + freStr)
        
        self.infoModel = model
        self.priceLb.text = kYQLSSwift("$") + model.price;
        self.priceLb.text = model.skuName;
        self.salesLb.text = kYQLSSwift("月销:") + model.salesVolume;
        self.detailTextLabel?.text = kYQLSSwift("发货地点:") + model.deliveryPoint;
    }
}
